#include <asm-xen/xenbus.h>
#include <linux/cpu.h>
#include <linux/kthread.h>
+#include <asm-xen/xencons.h>
#define SHUTDOWN_INVALID -1
#define SHUTDOWN_POWEROFF 0
void machine_restart(char * __unused)
{
/* We really want to get pending console data out before we die. */
- extern void xencons_force_flush(void);
xencons_force_flush();
HYPERVISOR_sched_op(SCHEDOP_shutdown, SHUTDOWN_reboot);
}
void machine_power_off(void)
{
/* We really want to get pending console data out before we die. */
- extern void xencons_force_flush(void);
xencons_force_flush();
HYPERVISOR_sched_op(SCHEDOP_shutdown, SHUTDOWN_poweroff);
}
int vcpu_prepare(int vcpu);
#endif
- extern void xencons_resume(void);
-
int err = 0;
BUG_ON(smp_processor_id() != 0);
#include <asm-xen/xen-public/event_channel.h>
#include <asm/hypervisor.h>
#include <asm-xen/evtchn.h>
+#include <asm-xen/xencons.h>
#include "xencons_ring.h"
/*
--- /dev/null
+#ifndef __ASM_XENCONS_H__
+#define __ASM_XENCONS_H__
+
+void xencons_force_flush(void);
+void xencons_resume(void);
+
+#endif /* __ASM_XENCONS_H__ */